package com.three.productList.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.three.core.entity.Product;
import com.three.core.entity.Store;
import com.three.core.vo.R;
import com.three.productList.vo.*;

import java.util.List;

/**
 * @author ：li
 * @date ：Created in 2025/3/10 010 19:57
 * @description：
 * @modified By：
 * @version:
 */
public interface ProductListService {
    R<IPage<ProductVo>> selectProduct(SearchForm searchForm);

    R<Product> deleteByProductId(Integer productId);

    R<Product> insertProduct(Product product);

    R<Product> updateProduct(Product product);

    R<List<Product>> selectAll();

    //手机端
    R<List<ProductMobileVo>> selectProductAndStoreNameByProductName(String productName);

    R<List<Product>> selectProductImagesByProductId(Integer productId);

    R<List<ProductAndStoreNameVo>> selectByType(Integer proTypeId, String productName);

    R<List<ProductMobileVo>> selectProductAndStoreNameByStoreId(String productName, Integer storeId);


    R ppraise(ProductAppraiseVo productAppraiseVo);

    R<List<Store>> selectStoreByUserId();
}
